<% var pageLevelJS = { %>
<script type="text/javascript">
var settings = {
	 	modelDomainFlag:"sys"
		,modelFlag:"emailbox"
		,modelName:"邮箱"
	 	,key:"${sessionId}"
	 	,canUpdate:${shiro.hasPermission('sys_emailbox:update:*')}
	 	,canDelete:${shiro.hasPermission('sys_emailbox:delete:*')}
	 	,canRemove:${shiro.hasPermission('sys_emailbox:remove:*')}
	 	,canAdd:${shiro.hasPermission('sys_emailbox:add:*')}
	 	,canDetail:${shiro.hasPermission('sys_emailbox:detail:*')}
	};
</script> 
<script type="text/javascript" src="${ctx}/static/js/sys/emailbox/index.js"></script>
<%};%> 
<% var form = { %>
<form id="searchForm" action="${ctx}/sys/emailbox/query?_style=bs&${session._para}" class="form-inline" role="form">
				   <div class="form-group  ">
				     <label for="email">邮箱:</label>
				      <div class="parentCls" style="display: inline;">
				        <input type="text" id="email" class="validate[maxSize[50]] inputElem" name="name" placeholder="邮箱">
				     </div>
				  </div> 
				  <div class="form-group" >
				       <label for="validClass">有效区分:</label>
				 	   <div class="form-control" id="validClass"> 
					       <label class="">
					         <input type="radio" name="validClass" class="toggle" value="1">有效
					       </label>
					       <label class="">
					         <input type="radio" name="validClass" class="toggle" value="0">无效
					       </label>
					       <label class="">
					         <input type="radio" name="validClass" checked="checked" class="toggle" value="">全部
					       </label>
				       </div>
				</div>
				  <div class="form-group"  >
				       <label for="validClass">删除区分:</label>
				 	   <div class="form-control" id="deleteClass"> 
					       <label class="">
					         <input type="radio" name="deleteClass" class="toggle" value="1">已删除
					       </label>
					       <label class="">
					         <input type="radio" name="deleteClass" class="toggle" value="0">未删除
					       </label>
					       <label class="">
					         <input type="radio" name="deleteClass" checked="checked" class="toggle" value="">全部
					       </label>
				       </div>
				</div>
				
			</form>
<%};%> 

<% var toolbar = { %>
 <%if(shiro.hasPermission('sys_emailbox:add:*')) {%>
			<button type="button" class="btn btn-primary btn-xs addBtn" title="新增" data-toggle="modal" data-target="#myModal">
				<i class="ace-icon fa  fa-plus bigger-120"></i>新增 
			</button> 
			<%}%>
			<%if(shiro.hasPermission('sys_emailbox:remove:*')||shiro.hasPermission('sys_emailbox:update:*')) {%>
			<button type="button" class="btn btn-warning btn-xs removeBtn" title="将数据标识为删除状态">
				<i class="ace-icon fa fa-trash-o bigger-120"></i>逻辑删除
			</button> 
			<%}%>
			<%if(shiro.hasPermission('sys_emailbox:delete:*')) {%>
			<button type="button" class="btn btn-danger btn-xs delBtn" title="物理删除数据">
				<i class="ace-icon fa fa-trash-o bigger-120"></i>删除
			</button> 
			<%}%>
			<div class="pull-right">
			    <button type="button" class="btn btn-info btn-xs tableBtn" title="控制非核心列">
			<i class="ace-icon fa bigger-120">隐藏</i>
		</button>
	</div>
<%};%> 

<% var ths = { %>
            <th w_render="checkboxFunc" w_class="center" w_index="id" width="50px"><input type="checkbox"/></th>
                <th w_num="total_line" w_class="center hidden-480" width="50px">序号</th>
		        <th w_index="name" w_tip="true" width="100px">邮箱</th>
		        <th w_index="sendTimes" width="50px">发送次数</th>
		        <th w_index="lastSendDt" w_class="visible-md" width="130px">最后发送时间</th>
		        <th w_index="validCreateDt" w_class="hidden-480" width="130px">创建时间</th>
		        <th w_render="validClassFunc" w_class="hidden-480" w_index="validClass" width="120px">有效区分</th>
		        <th w_render="removeClassFunc" w_class="hidden-480" w_index="deleteClass" width="120px">删除区分</th>
		        <th w_render="operateFunc" class="width-480-ctr" w_index="id" width="100px">操作</th>
<%};%> 
<% var layoutParas =
{"title":"",table:"searchTable",tableClass:"","ths":ths,"toolbar":toolbar,"form":form,"pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicGridTemplate.html", layoutParas){ %>
	
<%} %>
 